#include "Punct.h"
Punct::Punct()
  {
    (*this).x=0;
    (*this).y=0;
    (*this).nume='O';
  }
Punct::Punct(char m,int a,int b)
  {
    (*this).x=a;
    (*this).y=b;
    (*this).nume=m;
  }
int Punct::getX()
  { int m;
    m=(*this).x;
    return m;
  }
int Punct::getY()
  { int m;
    m=(*this).y;
    return m;
  }
char Punct::getNume()
  {
    char m;
    m=(*this).nume;
    return m;
  }
void Punct::setX(int l)
  {
    (*this).x=l;
  }
void Punct::setY(int n)
  {
    (*this).y=n;
  }
void Punct::setNume(char q)
  {
    (*this).nume=q;
  }
ostream& operator<<(ostream& cout,const Punct X)
  {
     std::cout<<X.nume<<"("<<X.x<<","<<X.y<<")"<<endl;
     return cout;
  }
istream& operator>>(istream& cin,Punct& X)
  {
    char d;
    int b,c;
    fflush(stdin);
    std::cout<<"Introduceti numele punctului : ";std::cin>>d;
    std::cout<<"Introduceti coordonata X a punctului : ";std::cin>>b;
    std::cout<<"Introduceti coordonata Y a punctului : ";std::cin>>c;
    X.setNume(d);
    X.setX(b);
    X.setY(c);
    return cin;
  }
